//删除拷贝构造和赋值构造的基类函数
#pragma once

class nocopy
{
public:
    nocopy()
    {}
    ~nocopy()
    {}
    nocopy(const nocopy&)=delete;
    const nocopy& operator=(const nocopy&)=delete;
};